package com.thunder.rebot.rebotclient.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.thunder.rebot.rebotclient.R;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by yuechunan on 18-7-2.
 */

public class SettingActivity extends BaseActivity {

    private static final String TAG = "DisplayFaceActivity";
    @BindView(R.id.center_txt)
    public TextView centerTxt;
    @BindView(R.id.left_img)
    public ImageView leftImg;
    @BindView(R.id.right_txt)
    public TextView rightTxt;
    @BindView(R.id.ok)
    public Button ok;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);
        ButterKnife.bind(this);
        centerTxt.setText(R.string.setting);
        rightTxt.setVisibility(View.INVISIBLE);
    }

    @OnClick({R.id.left_img,R.id.ok})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.left_img:
                finish();
                break;
            case R.id.ok:
                //给小车发速度
                finish();
                break;
        }
    }
}